package com.xquant.pricing.pricingConfig.service.impl;

import com.github.pagehelper.PageInfo;
import com.xquant.pricing.pricingConfig.mapper.TargetParamMapper;
import com.xquant.pricing.pricingConfig.service.TargetParamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author ershuai.zhao
 * @Date: 24/12/2019 11:42
 * @Description:
 */
@Service(TargetParamService.BEAN_NAME)
public class TargetParamServiceImpl implements TargetParamService {

    @Autowired
    private TargetParamMapper targetParamMapper;

    @Override
    public void insertTargetParamCfg(Map map) {
        targetParamMapper.insertTargetParamCfg(map);
    }
    @Override
    public void updateTargetParamCfg(Map map) {
        targetParamMapper.updateTargetParamCfg(map);
    }
    @Override
    public void deleteTargetParamCfg(Map map) {
        targetParamMapper.deleteTargetParamCfg(map);
    }

    @Override
    public  PageInfo<Map> queryTargetParamCfgByPage(Map map) {
        List<Map> list = targetParamMapper.queryTargetParamCfgByPage(map);
        return new PageInfo<Map>(list);
    }
    @Override
    public  PageInfo<Map> queryTargetParamCfg(Map map) {
        List<Map> list = targetParamMapper.queryTargetParamCfgByPage(map);
        return new PageInfo<Map>(list);
    }

}
